/**
 * Copyright 2008-2009 HAN.BIFANG
 *
 *  Licensed under the Apache License, Version 2.0 (the "License");
 *  you may not use this file except in compliance with the License.
 *  You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 *  Unless required by applicable law or agreed to in writing, software
 *  distributed under the License is distributed on an "AS IS" BASIS,
 *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 *  See the License for the specific language governing permissions and
 *  limitations under the License.
 *
 */
package han.bifang.business.query;

import han.bifang.business.dao.QueryDao;
import han.bifang.business.dao.ServiceDao;
import han.bifang.common.entity.BusBindingWrapper;
import han.bifang.common.entity.EntityConstants;
import han.bifang.common.entity.MappingServiceDetailInfo;
import han.bifang.common.entity.MappingServiceVersionDetailInfo;
import han.bifang.common.entity.ServiceBusDetailInfo;
import han.bifang.common.entity.ServiceDetailInfo;
import han.bifang.common.entity.SoaBusBinding;
import han.bifang.common.entity.SoaHttpBinding;
import han.bifang.common.entity.SoaJmsBinding;
import han.bifang.common.entity.SoaJmsBindingWrapper;
import han.bifang.common.entity.SoaMappingService;
import han.bifang.common.entity.SoaMappingServiceVersion;
import han.bifang.common.entity.SoaMethodQos;
import han.bifang.common.entity.SoaMqJms;
import han.bifang.common.entity.SoaNormalJms;
import han.bifang.common.entity.SoaService;
import han.bifang.common.entity.SoaServiceBus;
import han.bifang.common.entity.SoaServiceQos;
import han.bifang.common.entity.SoaServiceVersion;
import han.bifang.common.entity.SoaSoapBinding;
import han.bifang.common.entity.SoaVersionQos;
import han.bifang.common.entity.SoaWebServicesBinding;
import han.bifang.common.entity.SoaWebServicesMethod;
import han.bifang.common.entity.SoaWebServicesMethodWrapper;
import han.bifang.common.entity.SoaWsdlWrapper;
import han.bifang.common.entity.VersionDetailInfo;
import han.bifang.common.exception.BifangErrorCode;
import han.bifang.common.exception.BifangException;
import han.bifang.common.persist.dao.DaoManager;
import han.bifang.common.persist.tx.Tx;
import han.bifang.common.persist.tx.TxManager;

import java.util.ArrayList;
import java.util.List;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;

/**
 * @Author Kent
 */
public class QueryManager {

	public static ServiceDetailInfo getServiceDetailByCode(String code)
			throws BifangException {
		return QueryDao.getServiceDetailByCode(code);

	}

	public static MappingServiceDetailInfo getMappingServiceDetailByCode(
			String code) throws BifangException {
		return QueryDao.getMappingServiceDetailByCode(code);
	}

	public static ServiceBusDetailInfo getServiceBusDetailById(String id)
			throws BifangException {
		return QueryDao.getServiceBusDetailById(id);
	}

	public static ServiceBusDetailInfo getServiceBusDetailByCode(String code)
			throws BifangException {
		return QueryDao.getServiceBusDetailByCode(code);
	}
}
